﻿<controls:ChildWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ViewModels="clr-namespace:SilverlightWebcamEncoder.ViewModels" mc:Ignorable="d"
                      x:Class="SilverlightWebcamEncoder.Views.YouTubeUploadView"
                      Width="400"
                      Height="248"
                      Title="YOUTUBE UPLOAD"
                      TextOptions.TextHintingMode="Animated"
                      Style="{StaticResource ChildWindowStyle}"
                      FontFamily="Segoe UI"
                      FontSize="21.333"
                      Foreground="{StaticResource CommonForegroundBrush}" IsEnabled="{Binding IsIdle}" OverlayBrush="#26000000">
    <controls:ChildWindow.DataContext>
        <ViewModels:YouTubeUploadViewModel />
    </controls:ChildWindow.DataContext>
    <Grid x:Name="LayoutRoot"
          Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Image Source="/SilverlightWebcamEncoder;Component/Resources/youtube-icon.png" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="100" />
        <Button x:Name="CancelButton"
                Content="Cancel"
                Click="CancelButton_Click"
                Width="75"
                Height="23"
                HorizontalAlignment="Right"
                Margin="0,12,0,0"
                Grid.Row="1"
                FontSize="12"
                FontWeight="Bold" Visibility="Collapsed" />
        <Button x:Name="OKButton"
                Content="Close"
                Click="OKButton_Click"
                Width="75"
                Height="23"
                HorizontalAlignment="Right"
                Margin="0,12,0,0"
                Grid.Row="1"
                FontSize="12"
                FontWeight="Bold" />
        <Canvas
        	Margin="104,0,30,102">
        	<TextBlock
        		TextWrapping="Wrap"
        		Text="username"
                       Canvas.Top="-3" />
        	<TextBox TextWrapping="Wrap"
        		HorizontalAlignment="Right"
        		Width="140"
        		Style="{StaticResource TextBoxStyle}"
        		Padding="0" FontSize="16" Canvas.Left="106" Text="{Binding Username, Mode=TwoWay}" />
        	<TextBlock
        		TextWrapping="Wrap"
        		Text="password"
        		VerticalAlignment="Bottom" Canvas.Top="29" />
        	<TextBox TextWrapping="Wrap"
        		HorizontalAlignment="Right"
        		Width="140"
        		Style="{StaticResource TextBoxStyle}"
        		Padding="0" FontSize="16" Canvas.Left="106" Canvas.Top="32" Text="{Binding Password, Mode=TwoWay}" Foreground="{x:Null}" />
        	<TextBlock
        		TextWrapping="Wrap"
        		Text="video title"
        		VerticalAlignment="Bottom"
		Canvas.Top="61" />
        	<TextBox TextWrapping="Wrap"
        		HorizontalAlignment="Right"
        		Width="140"
        		Style="{StaticResource TextBoxStyle}"
        		Padding="0" FontSize="16" Canvas.Left="106" Canvas.Top="64" Text="{Binding VideoTitle, Mode=TwoWay}" />
        </Canvas>
        <Button x:Name="UploadVideo"
                Command="{Binding UploadVideo}"
                Content="UPLOAD"
                Margin="0"
                FontWeight="Bold"
                VerticalAlignment="Bottom"
                Padding="10,3" d:LayoutOverrides="VerticalAlignment, Width" HorizontalAlignment="Center" />
        <TextBlock TextWrapping="Wrap" Text="{Binding UploadMessage}" VerticalAlignment="Bottom" Margin="0,0,0,40" d:LayoutOverrides="Width" HorizontalAlignment="Center" FontSize="16" Foreground="{StaticResource CommonForegroundBrush}"/>
    </Grid>
</controls:ChildWindow>